include $(TOPDIR)/rules.mk

PKG_NAME:=xmpp_agent
PKG_RELEASE:=1
PKG_INSTALL:=1


include $(INCLUDE_DIR)/package.mk

define Package/xmpp_agent/Default
	MAINTAINER:=Vikram Singh <vikram at iotina.io>
endef

define Package/xmpp_agent
  TITLE:=XMPP Agent support
  DEPENDS:= +libstrophe +libuci
endef

define Package/xmpp_agent/description
	XMPP Agent support. 
endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
	$(CP) ./src/* $(PKG_BUILD_DIR)/
endef


define Package/xmpp_agent/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/xmpp_agent $(1)/usr/sbin/xmpp_agent
endef

$(eval $(call BuildPackage,xmpp_agent))

